import numpy as np

factor_A = [6, 1, 2, 7]
return_profit = [0.02, 0.004, 0.005, 0.007]

corr = np.corrcoef(factor_A, return_profit)
print(corr)
